Conversation
|
How'd you pick the minifiers? (or did you just let the AI pick?) e.g. per this page lightningcss does a substantially better job. |
|
I picked html-minifier-terser. The AI picked the others. I can swap in lightningcss and see how it does. |
|
Unfortunately there's an issue with lightningcss's handling of our non-standard Prince directives in
Notice that it removes them, it doesn't just pass them through unchanged. Additionally, we can swap out terser for swc, which some people consider better, but I don't really like using html-minifier-terser (which will handle inline JS using terser) but then using swc for external JS. The difference was only 25 bytes on |
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
Fixes #222.
Disclaimer: I used AI in the process of making this PR.